The phrase "miserable failure" refers to someone who has failed in a very unfortunate, sad, or pitiful manner.